
import clear from 'rollup-plugin-clear'
import { uglify } from "rollup-plugin-uglify";  

export default  {
    input:  './index.js', 
    output: [
        {
            file: 'dist/index.mjs', 
            format:"es" 
        },
        {
            file: 'dist/index.js', 
            exports:"default",        
            format:"cjs" 
        }
    ],
    plugins: [ 
        clear({targets:["dist"]}),
        uglify()
    ] 
    
}  